<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ～ ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------
// you should use `$router`
/* @var think\Route $router */
$router->group(function () use($router) {
    // tenant 路由
    $router->post('tenant', 'catchAdmin\tenant\controller\Tenant@index');
    $router->post('tenant/info', 'catchAdmin\tenant\controller\Tenant@info');
    $router->post('tenant/update', 'catchAdmin\tenant\controller\Tenant@update');

    // 口岸配置
    // 口岸列表
    $router->post('myPort/portList', '\catchAdmin\tenant\controller\MyPort@portList');
    // 创建口岸
    $router->post('myPort/createPort', '\catchAdmin\tenant\controller\MyPort@createPort');
    // 修改口岸
    $router->post('myPort/updatePort', '\catchAdmin\tenant\controller\MyPort@updatePort');
    // 删除口岸
    $router->post('myPort/delPort', '\catchAdmin\tenant\controller\MyPort@delPort');
})->middleware('auth');
$router->post('tenant/getEmployee', '\catchAdmin\tenant\controller\Tenant@getEmployee');